//
//  LEEPicCollectionCell.swift
//  SinaWeibo
//
//  Created by 李江波 on 2016/11/16.
//  Copyright © 2016年 lijiangbo. All rights reserved.
//

import UIKit

class LEEPicCollectionCell: UICollectionViewCell {

    @IBOutlet weak var pic_item: UIImageView!
    
    @IBOutlet weak var isGif: UIImageView!
    
    
    var picUrl : LEEPic_url? {
    
        didSet {
        
            pic_item.sd_setImage(with: URL(string: (picUrl?.imgUrl ?? "")))
            
            isGif.isHidden = !picUrl!.imgUrl!.hasSuffix("gif")
            
        }
    }
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        
        
        
    }

}
